package uk.co.cocking.getinline2.pipeline.io;

import java.io.PrintWriter;
import java.io.Writer;
import java.util.List;

import uk.co.cocking.getinline2.pipeline.transformers.AbstractTransformer;

public class LineWriter extends AbstractTransformer <String, String> {

   private final PrintWriter out;

   protected LineWriter(Writer writer) {
      out = new PrintWriter(writer, true);
   }

   public List<String> transform(String line) {
      out.println(line);
      return enlist();
   }


}
